view toggle working