adding sidebar events