refactor into articles controller