use controller to set position of current page