Add minimize to tray function.