I totally dont understand what all of this does.

1. why do you care about STI in this context?
2. you loose all of the form attributes if you get an ID.