add code for flash hash in application layout