update input and language