Share buttons - moving html from functions into template