Fixed gui for threshold for different screen resolutions.