apply modal