better implementation of AJAX for angular Tags controller