ui updating and js to change li text