Add open share window function