EPIC REFACTORING!!!!!

current version allows to create subwindows only once at the moment of
their parent button pressed
last up to previous changes