Trying to make the layer select automatically