logic change in sidebar