Only trigger notify if there is an actual change

copying implementation from the hide method