fixed the viewer toggle button