removed input from template and using valueChanged