improving modal