syntax fix for confirm when delete post