Added buttons to enable and disable auto scan