refactored flashes, added rescue from record not found in controller with error flash message to user