Added an action to open the popup window.

Changed the actions in the popup window to their own classes, which are now private classes in the popupwindow.