Add onload callback when a form is loaded