Added option for minimizing to tray