modify active link method for sidebar to take account for different routes