- fixed title bar layout issues
- moved window logic from AppDelegate to WindowController