fix ui issues in modal