updated gui to take in user input