achieve the mvc route and make two global var