modal layout improvements