Changed hover to click methods. Includes parameter ids which will have click events appended to close the dialog.