edit article function