fix pop-up layout