dynamically build sidebar menu