Call end snippet on page load for preparation of form