Added functionality to the UI and Agent that will help to intergrate Crank into D-Crank

let's change this to iterating over the key collection. as @Eilon explained in his earlier comment, it's the preferred approach