fixed createandshowgui by taking it out of invokelater thread