refactoring exercise status generation: completion status passed to views as parameter and green/red bar implemented with divs