Added threshold mode GUI