Store value of toggle switch