adding resource added event on form creation