changed download ctx with angular templates updated