fixed new exercises not being displayed in view after adding them, fixed some redundent code
Merge pull request #259 from maronin/issue#258

fixed new exercises not being displayed in view after adding them, fixed...