Disable elements when hidden
Fix disabling hidden elements