Logic to dynamically add predict buttons

logic to dynamically add predict buttons on stock info page