introduce USE_CLICKENCODER to select between classic behaviour and click encoder ui