added new features like edit , delete but i have an error with the index page