working for resource view