input view and controller partly implemented