refactor(certifications): passed controller to the function