remove ct button and some global vars