basic modal view for code gen