Add page control and update it accordingly