modified for easier router controlling
use the global $config and $lang