refactored more mem widget; added some new helpers