Changed topic name length
Solved bug when trying to edit a topic, it was always creating a new one
Organized code