added  error handling for recommendations btn