updated switch statement and email button css