add style and layout to the popup