End condition and edge ui.style update