problem with time in main window solved