added explicit wait in all submit codes during testing