delete model hashmap when setting a new model