edit master and index page