update mvc exmaple. fixes #1789