use 'form' format to detect the form submission