handle modal targeting