Rebuild asActivity, add ajax feature