Add code to apply the chosen entry