updating repositories controller for the updated way to specify resources
updating users and roles controller for the updated way to specify resources