Refined layouts of popup and buttons.