Fancy datepicker + task statement deadline refactoring