Added modifications in order to be able to show previous month also.