Fix cross-browser compatibility for navbar