gets context from the router