updated gui code for Shane