Fixed refresh of dialog on page reload