additions to clicktoggle() function