search page modal fixes, functions etc