added flash notice to layout