hw6 part2, add buttons, centering