Add functions to revert, commit changes, select event, select item via api