Refactored.  Added popup and hide methods.