change otto register to onstart and onstop