Modified the edit template.
Added control class div tags and all the necessary stuff for editing.