helper to render script code later
modal overlay for record details