Make it possible to navigate to other months

At the moment, going back to the previous month does not work as expected if
the current month doesn't have the same amount of days as the previous one.
This should be fixed.