make it possible to add view to main window;