modified delay time and make page frozen after a click