UI changes

Added code for
1. Adding a clear button for resetting the input text field
2. Code for exiting the application on typing 0 in the input text field