fix for resource modal not closing when adding resource