making changes to give alerts for various events