Updated sidebar html with refresh and leave