Refactored goal list into directive.