first attempt of using buttons to change view

unsucessful