Added window for threshold, fixed general gui look
threshold dialog
merged minor fixes