refactor display_month beginning