Fixing #24

Exposed a public api for IsTableModeActive and using it instead.