Class to respond to user interactions.