added support for radio buttons and fixed some issues

from now on all the elements in forms has to have IDs to preserve their
state