[] moved sidebar functionality from dashboard to its own file