Update setInput to correctly update values
Convert setinput to single-file app