large refactor. Reading stuff from slots, rendering stuff in separate htmls