Removed a redundant condition from showDots and showLines