added flash notice to application layout