PRD-4520 Allow Edit of Query by name or select first Query if none are s...

...elected during edit

Added new method to find the first query in a set - modified the add query action to select and highlight the first query (if none selected)