Updated resourcecontroller template