refactoring of views file, removed unnecessary call to generic views