refactor(closure): refactor TermsController to closure