fixed flash messages on index.html