auto select new layer in gui