Implementing page selector.