converted layout to haml, added flash output to main layout