Fixes for changing report buttons, and stratifying by date variables