Moved current page counter to be static to the select function.
Moved current page counter to be static to the select function.

modeswitch/barrelfish,modeswitch/barrelfish,modeswitch/barrelfish,modeswitch/barrelfish,modeswitch/barrelfish