set input on render