added the stat dialog