update pad layout and size.