implement AppRouter and AppView and include sample file