Set up page number switch