Changed dialog finding method

Now using jquery to specify div#id, so that it gets the dialog
regardless of position. Doesn't work if you open multiple times without
closing though