More work on results dialog. Need to add listeners and handlers now.