split url generator for custom_tweet_button into its own method, which can be called independently