Scales window size to DPI of display
Fix code for displaying of conditional dates