Changed to a pyface dialog for preferences