Added constraints to table widget