finish next&prev page