restored amendements onclick behaviour following data change