added funtionality for creating and saving articles over ajax