handles modal appwide.