Fixed styling and added braces around the foreach