add edit when and UIBlock