added functionality to add resource to project