added functions to delete posts