I made some more changes and I think I have the ugly gui up and running. Still needs more debugging though.