Added more states, undo action for numeric input, passing vote_input from GUI to ajax request