Avoiding submission of main form