Implement checking internet connection in attendance form page

Implement checking internet connection in attendance form page