added the log at the beggining of the activities