Init must preceed reference to modal and view.