using dispose() instead of setVisible(false)

in TowerOptionsPanel