Fixing bug with the scope of the success handler of the ajax call in view collection