pop up layout fixing