adding addInput feature on BaseController