actions to handle training mode added to backend