Update boundaries when clicking outside of ui and editable