Modify button text color and remove useless code.