made download_form function public