finish user edit, update, index and destory