added indices for actions, changes and acts
cleaned up notification code