added modal and closeOnOutsideClick setter/getter