changed boolean named run to createGui