public static function title($id) {
        $module = \jacmoe\mdpages\Module::getInstance();
        if(!is_null($module)) {
            $controller = \Yii::$app->controller;
            if(!is_null($controller)) {
                if($controller->id == 'page') {
                    $repo = $controller->getFlywheelRepo();
                    $page = $repo->query()->where('url', '==', $id)->execute();
                    $result = $page->first();

                    if($result != null) {
                        if(isset($result->title)) {
                            return $result->title;
                        }
                    }
                    return 'page not found';
                }
                throw new NotSupportedException("Can only be used when active controller is 'page'.");
            }
        }
        throw new NotSupportedException("Can't be called outside of jacmoe\mdpages module.");
    }