fix bug on edition in index page + fix on ajax insertion