Trade model working with modal on frontend