refactored HTML to slim syntax