adding earring functionality