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