reformatted code and added go to month function