Added XML ajax call and edit function.