Add toState to possible injecting

The menu might need to know which state is being transitioned to,
so it can link to itself. This adds toState as an injectable value.