init query editor for new query