Core pr 5

Set of minor fixes and a fix to ensure that search's are not submit twice on the search page do to panels.