Refactor the desktop actions