Adding refreshing and commit effects