1. updated key_terms_helper with type and id, 2. removed redundant code