add log in the vieweractivity