Html fixes 24-10

Small html fixes

- Subcategory
- Edit topic/ New Topic
- code cleanup
Please restore the endif, this could cause tags to break if config is enabled.