Header link and case active_end date fixed

Fixed two lines of code