Used Moodle Form API/added CSS/renderer corrected

Used the Moodle Form API for the update form instead of raw html. Added
some CSS for the Update form. Also the renderer now returns the entire
html rather than a part of it.