added flash notice for layouts