added layer select functionality