fix search page function, make navigator aware of page offset