Change update and delete method and fixing bug when created or updated weeeding