get toggle working