Attach route handlers to map
Only update() if enabled