separate MainController::article to 2 another function