Added option to minimize window when copying data to clipboard