Modified code to display On/Off Sign properly while editing security value.