created convert post to topic function