added script for dynamic row