Fixed a firefox bug, added some HTML form attributes