modify key_data passed to keys index view for assign keys flow