added delete and update functions to all resource controllers and routes