Made datepicker part clearer at controller.
Fixed refresh issue with edit page.