Added functionality to update sidebar
Merged