removing the layout code