Added some GUI functionality after slightly modifying Preeti's GUI