optmize the code style in form get & post