Added leadgesture functionality