adds close button and makes sure panel moves with dialog.
Merge branch 'master' into issue39_searchpanel_fixes
Merge branch 'issue39_searchpanel_fixes'