Improved events CRUD and datepicker directive