flatten sidebar menu