Found problem where current page was not being set on initialization