adding layout code