refactored used components
added Test for CheckTab
added test for NewFileDialog