started refactoring basic functionalities into baseWindow