case statements to decide what actions to take based on the user types in. add, update, display and delete cases.