check empty query + change title