added minimize shortcut and refined mouse tracking