linking buttons on search results template