Fix for Issue #4383: Updated documentation on sidebar view events

For Issue #4383. Updated documentation on sidebar view events and small code cleanup.