Changed flash notices to work in menu page