added ref to router component so you can dig down through it