I am having trouble with the code for the view template below. A summary of its purpose is to display transcluded message tiddlers into one conversation tiddler. The issue is with the favoriting system I have implemented. The first time a message is favorited it is sent to the bottom of the conversation tiddler, when I want it to stay put. However, if all messages have been favorited the buttons work as intended, but this is not the proper use. Any help is appreciated!
<$vars conversation={{!!conversation_title}} conversation_index="1">
<div class="conversation-title">
<h1>{{!!conversation_title}}</h1>
</div>
<$macrocall $name="exportButton"
exportFilter=<<currentTiddler>>
lingoBase="$:/language/Buttons/ExportTiddler/"
baseFilename=<<currentTiddler>>/>
<$list filter="[conversation_id{!!title}sort[created]]" counter="num">
<$details summary={{!!author}} open="yes">
<$list filter="[is[current]!favorite[true]]">
<div style="text-align: right;">
<$button class="tc-btn-invisible" tooltip="Unfavorite this message">
{{star-unfilled.png}}
<$action-setfield $tiddler=<<currentTiddler>> favorite="true"/>
</$button>
</div>
</$list>
<$list filter="[is[current]favorite[true]]">
<div style="text-align: right;">
<$button class="tc-btn-invisible" tooltip="Unfavorite this message">
{{star-filled.png}}
<$action-setfield $tiddler=<<currentTiddler>> favorite="false"/>
</$button>
</div>
</$list>
<br>
<div class="message_block">
<$transclude mode="block"/>
</div>
<div class="annotation_button">
<$macrocall $name="annotate" message-id={{!!message_id}}/>
<hr>
<i>Generated <$text text={{{ [{!!timestamp}format:date[DDth mmm YYYY 0hh:0mm:0ss]] }}}/></i><br>
Tokens: <$editor-counter field="text" mode=word/> ||
<$link/><br>
<$list filter="[timestamp{!!timestamp}chatgptelement[]nsort[timestamp]nth{!!title}]">
<$vars tiddler-title={{!!title}}>
<div class="associating image with message">
<$details summary="Associate an image with this message">
<$macrocall $name='image-picker' actions="
<$action-setfield $tiddler='$:/_MyImage' $value=<<imageTitle>>/>"/>
<$image source={{$:/_MyImage}} width="100"/>
<br>
<$button> Add {{$:/_MyImage}} to this <$link to={{!!title}}>prompt</$link>
<$action-setfield $tiddler={{$:/_MyImage}} message={{!!title}} chatgptelement="added-image"/>
</$button>
</$details>
</div>
<div class="picture in message">
<$list filter="[chatgptelement[added-image]message{!!title}]">
<div>
<$image source=<<currentTiddler>> width="100"/>
<br> <$button> Remove this <$link to=<<currentTiddler>>>image</$link> from this
<$link to=<<tiddler-title>>>prompt</$link>
<$action-setfield message="" chatgptelement=""/>
</$button>
</div>
</$list>
</div>
</$vars>
</$list>```