got toggle working propperly