filling in resource controller actions