Removed unnecessary onAfterAction section from router