html displays content, saves state