added js and css for popup dialogs