Some formatting changes
Changed name of visible variable from display to isVisible.