added custom delegate to MVC