interim update - before rejigging internal functions and changing paths from using ids to classes.
stateful buttons working.  just need to correct button behaviours and make work properly for touch.