Renames component to patterns and fixes dataService bug.
Refactored to use on controller.