updated resource controller

updated resource controller