Create a more reusable layers control