Changed "redirect"-hooks to "afterModel"-hooks.