fixing the brief appearance of the toggle switch on page load