state sidebar working