mega article template refactor