handle target layer selector