added show/hide functionality