bootsrap refactoring. creating main router