How do I change models in certain conditions?