got the gui working