fixed sidebar conditionally working