converted to php with templates

continued styling and content