adds context handler for MVC