removing the static function style and creating a new navmodel in the composer (this will be redone at some point with dependency injection)