limit max commits view number on activity