Tried to implement the delegate protocol for the create view controller