so set calculator to null when popupwindow dismiss
improve use experience