needed to add some Thread.sleep() in order to give the EDIT time to update the component