remove showError function
remove hideError function
refactor many codes