SCP - tweak to change close page behaviour

Now finds and selects first of the remaining open pages