sidebar works properly now