Added @RequestMapping before index method.