gave InputFragment an interface