update input with buttons to work