removed unececessary joptionpane