Refactor sharing.html