creates layercontroller