changed modal to use jquery Dialog