fix type assignment to topics in populate data. assorted client side code to render topic previews and a topic on the home page