browser capsule refactoring is completed. All functionality is worked MOSTLY. Some tests is passed