Adding camera on alert function