gui upgrade: alerts for errors, warning alerts for wrong inputs
finer adjustments to the selection algorithm