add tests to edit and update dom id on index page