making model have delagte of master view controller