removed alerts and replaced with popups
and integrated webcam