Click zoom & update iteration count on leaving window