change layout for paginator