Updated GUI code

Updated some of the base GUI code, bringing better functionality and
other stuff.