changed GUI constructor to try to solve blank window problem