remember plugin-UI type (custom/basic) with session.

amend to 3.1-81-g1acf8bd