moved prev/next controls out of html