fixing routes for paginator. fixing paginator too.