Replaced all alerts with page broadcasts. Added missing semicolons