Move setGeometry to MainApp