refactor, clear inputs on reload