Math formula rendering, nav-bar fixes, dirty isMath check