prevent navbar from showing angular code before full page load