alert replaced by modal window