made slight changes to viewtables so that the vieworder button only displays the orders of the tables coresponding to the button