Connected all view and search buttons to output. Yet to implement paging