Added a context option to the popup module to make its behavior closer to modal.