fixed html issue, changed flash notices to standard rails