Change window title.
Add firstRun flag; catch null pointer exception.
Move creating to const variable.