added basic layout code