Finished implementing popover controller