Added datetimepicker @ frontend. Fixed bugs in controller