add layout attributes