fix opening search results in same window

@sujitbehera27, an extra argument got added during refactoring -
so the argument wasn't wrong, it was in the wrong place
remove obsolete "demo demo2" classes
clean up css, and fix paging button size
better fix for not having pagination buttons jump around

we don't need to clear the results when paging, so don't
for @sujitbehera27

fixes #958