added methods to enable/disable gesture capturing