giving preexisting code a better gui