init modal module before view and buffer