adding patches for android and ios modal display bug