created popupwindow class - still to be tested - template for all ingame dialogs