added private methods and create two render markdowns for posts and topics