change each key to key
add conditional for showing preferences