fix positioning issue with modal dialog