getting gui to work