using tableview delegate instead of cocoa bindings