using angular to show and update chains