implemnets edit name functionality
buxfix: when elephant is changed list of elephant names is updated