Add page switch and panel