update blog logic