updated the layout of buttons and text fields