simple helper to render table using given collection