fixed #18 added urls generation for share and preview buttons