add simple implementation of main window