Refactored twitter sharing code: added 2 new methods