added month selector helper function