finished main GUI