added session expiry fix to search controller