finish add topic function