support minimizing to system tray. closes #1