split the display_month method into two specfic methods