added functionality to add topic