added user edit and update index and delete