simplified open modal parent detection