Working with the views and buttons