Changing view to popover