afterModel hook is the better place for this logic