added code for flash notices and alerts in application.html.erb