modified window title setup and some other stuff