fixed close of windowProfileEditor and white spaces removed