adding buttons for changing between views