auto trans when submit