Fixed off function

attached listeners differently
added https pages
initialize plugin to be in the On state