extract getMatchingForms to service and refactor controller