fix whitespaces and prevent form resubmission problem
fix whitespaces and prevent form resubmission problem