Fixed issues for not loading templates within angular