Fix page control click function issue