change freeFunc for handling list of programms
flaging more counter as register values
fix resize bug of displaying search results