disabling link when no results found