added layer control