added switch statement to messageView trade offs