minor modifications on modals