added centering code for the modal.