load switch status on page