add auto edit in index