implementing table widget