creating term controller