extract datetimepicker() to application.html