modified submit behavior