refactor page inputs