Clean if-else by switch-case

Great application!
Its not a big deal but with switch-case it is easier to read