ensures the flow of the form