Added the delegate and linking to the ViewCOntroller