created a helper file for the articles controller