ui: basic pattern switching