created the main gui window