Removed pop up dialog. Refactored timepicker code.