first version of popup window