cleaned up date API request and rendering