1.refactored the Reminder code in MainApp.
2.removed redundant code in editlistener
3.refactored reminder to a TimeService class. This class can be used to implement other future time service.