cleanup ajax show terms