hooked up prev/next
more robust example