implements date picker in view