making close buttons work and a change to modal dialog css to visibility scroll