Changed cancel link to button in term popup to prevent refresh of original form
Now saving the query details whenever adding, editing or deleting a term
Now also storing query subscription data when adding/editing/deleting a term