updated mvc example with minor code changes