Wrapped UI logic in while loop so that it does not exit after every
command; added exit command