New pet ordinance aims to stop dog attacks before they happen