addressed template loading issue