better DOM layout for modal