made date field a selector instead of a text field