Replaced deprecated mvc configuration