added possibility to edit minimum of validity of query