added ajax to create function for post/comment, created view