add HTML markup required for saving/editing