arranging the viewing tables