onClick is removed with layer