Change user logic on threshold save

Modified the logic of save dialog in thresholds activity