add blog logic