no longer resetting visibility state on load, renamed state checking method for clarity