Added ajax functionality for getting posts, post deletion now works