dynamic modal snippet