Fix enable/disable ticket number history
* add preference option to clear card history
* improve refresh of ticket history list
* fix soft keyboard not hiding under certain circumstances
* clear everything when clearing current card number