use modal and updated js libs