fix metadata viewer toggle button