fix issue with modal backdrop appearing in front of dialog