adds functions to blog such as creating new posts and deleting