Membership Plugin : Stay on page Pop-up

I want user to be able to register or login while staying on the page that is restricted. Like making the registration pop-up show on the restricted page where they can login or register without leaving the page with the restricted content. If that is not possible perhaps have the registration page redirect them back to the restricted content page. I would rather have the pop-up, so that they don't have to leave the page.