replaced goToPage() function with goToNum(arg)

goToPage was a little broken since we had 2 inputs from it to draw
from. it would always take the first one. This new function gets the
value from an argument so there is no confusion. Also it cleans out
both boxes after it's done.