adding cases for ui-modal