added useful functionality to the tables. mainly in the pop up ment