creating layer control