finally made a comprehensive & dynamic insert_row function, need to refactor everything now