assingning tag Ajax

work in progress