Add routing rules and close up actions.

Except gallery module.