Make frontend work with MVC