fixed seq fault
modified main window