made changes to toggleVisibility and toggleFade options