migrate custom code to new method

remove code from auto generated sections because any changes to design caused it to be removed anywys
add code to new method instead of auto generated area