I'm not sure whether we should separate these two views into two different js files, but I agree that we can discuss the refactoring in the future since this might not the best solution for this case.