implemented table and list view