move button_loop to prepare for the next commit