Edited MODAL to obey the 'trigger_type' argument properly