insert view() in the script file autogenerated
Re-write the ad-hoc method for the below threshold case

Signed-off-by: dmike16 <cipmiky@gmail.com>