Finished GUI, added some functionality