refactored the application spec for showing user input messages