Added support for passing type to delete & update action