Added threshold slider to GUI