add the function of adding, updating and deleting blogs