add layout and meta data