Fix flash message position on homepage

It closes  #775.