Added alert activation checkbox and functionality

Added if statement