smoother implementation of modal backdrop