Fixed flickering of screen on Modal open and hide