added centerWindow() to all views