added inputlistner