added events to tagsinput