no more black screen problem with modal