refactoring the code of not determined view