Refactored desktop & workspace hometab template and JS