removed toggle from api