Add page select function.