complete function: J next& prev page