Keep toggle buttons pushed when functions stops flashing, but is still running

Fixes issue 116.
Merge pull request #131 from janosvitok/issue116

Keep toggle buttons pushed when functions stops flashing, but is still running