migrate sex field, ajax form validate, dialog confirm, refactoring custom.js