fixing hardcoded Settings.find_by_id(1) bug to Settings.first and placing alerts in flash display