stuff for view and image preview
I did not touch anything to do with topics...