refactoring styles, fixing attachment to other windows.