change toggle status code