switch (type) {
case "up":
thought.incrementThumbsUp();
break;
case "down":
thought.incrementThumbsDown();
break;
default:
model.addAttribute("errorMessage", "Wrong update type.");
model.addAttribute("thoughs", dataService.getAllThought());
return "home";