Formating post html and Adding login/reply to sidebar