Edit index page & logic