updated modal library to have one argument only