adherence tracking UI and database/history functions