update modal layout + setup display logic