updated date parameter
added support for saving toggle state
updated extension