adds options to disable closing on esc key or overlay click