Added flash based notice and error messages