add layout code