included conditional statements for cases where BOTH toggleFade and toggleVisibility are true