added scrolling animation when user clicks on an event