Added click event for tags