more dynamic and simple sidebar init