started adding functionality for deleting post