fix log competition bug.  put dynamic mode in more places.
track button state, add layout helpers to dynamic mode.