added server side code to add and delete posts