Add basic functionality to ResourceCtrl/ResourceDetailCtrl