Refactored ShareWindow