added code fragment for implementing a time picker