adjust the layout of Pop up window