fixing autorefresh

was previously unable to turn off autorefresh after you turned it on.
Merge pull request #5 from chadkouse/autorefresh

fixing autorefresh