implemented save and load publications and userCreatedPublications