added functionality for creating article and editing it