templates work for post, fixed post deleting