refactor action disabling