view layout code updates