when selection is changed in working set, scroll it into view
move functions which are referenced before they're defined
Merge pull request #6900 from adobe/randy/issue-6016-2

When new file is added to working set and selected, scroll it into view