removing factory instances from view after deletion