sticky header added

+ code cleanup
+ sticky header functionality added to tables