Bug-98 Use preference to store the last visit card position.

@john-hu please help me review this patch.Thank you.