dialog wont close
close button working