re-instate scroll logic
update generated code