refactoring workout exercise for rearranging json and index views