frontend render script