correct the wrong use of cap method and update panel html template