making todos array dynamic