Change changeCheckmarkFromLeadsGrid to a scope function,
Get dialog url by template and not $http