added dynamic table that uses api