modify directory and edit index html