Refactor the share icon display