rewrite action delete in all contollers and implements script of calendar