Changed how dynamic sidebar works