terms model and controller