[client] Clean up triggerSelectedCb() by using helper functions.
[client] Clean up fixupSelectTriggerBox() by using helper functions.