Only perform selection actions when the tree selection actually changes