added functionality to add new blog post and refactored routes