adding resource controller