Code restructuring - took out some parts of article.php into separate files