add autocommit to index page