add a delay to the openForm function