had to remove the search and sort functions to fix some display issues and than added main view to access all views