Changed popup window into a dialog. OnClick handler needs to be changed
with actual actions.