adjusts UI to handle datetime