Now predefined query runnable. Fixed query button visibility.