adds date picker and time logic