Moved inputs and buttons into a make_input() function