remove old preferences window