added controlbutton.
added control button and improve code for requiredfields.