change single blog view link creation to pass function