fixed factory to be able to have multiple instances on the same view