Tidy up global array get, prev/next links
Fix tag search