added Ajax and Encoding methods to Form widget