using .value instead of .innerhtml to fix bug.