change result ui and consider android life cycle