update td classes, add form elements