adjusting whitespace; reworking return values; added long click handler to history list