re-work coding for extended desktop