adds mobile def to wait for loading modal