Refactor show/send log activity