Newest version with styled flash messages