check if query result exists in session store
add tag style
add tag in view