hide query history when none