fixed sample_blog in simple_blog, refactored project