optimized array()
improved handling of toggle interruptions
improved show/hide