init blog function