prevent showing angular template while page is loading