add result activities and do some modifications