1.delete null object in ModelAndView function
2.fix some issues about code format