enabled toolbar
added isFirstWindow
added delay to allow opening of new windows
fixed menubar bugginess