Remaining changes to control condition

These are the changes made to the control condition after the first pull request.
I made them that way so the person that is working from Objective-C would not need to know about the HTML parameters that would be passed to the function. It will be transparent for them.

Also I tried making the toggleSentenceUnderline function but it had more lines of code and made the compiler check if the sentence was underlined or not.