Show selected type as item A in scripting, remember last view