edited: to integrate with all HTML changes
edited: <select> elements were moved into <form> element