added route lifecycle example