Refactor reverse/forward button hrefs