Refactor html body to fragments, add handling for testUser/testAdmin