Jon: adding titlebar profile control (work in progress)