add has_many options
add topic editing function