applying hiding + showing + mathjax