resets info card after clicking away