Added sidebar badges and fixed some routing