Enable/disable button dependant on threshold value