added connect to the model