Added trash, delete and restore actions
added slugify method