Added action event detection for activity logging