using ngSwitch in ui