Add a refreshing functionality for the sidebar data when a new element it's added