added a popover that opens/closes a view on button push