added some js changes for modal