prep for next/previous buttons