reload sidebar on state change