add ajax function to backup feature