put flash messages div on application layout & set precompile to false